Do only register tasks that are not "abstract" and defined in the very module
This is especially required for the gitlab lister to prevent things like RangeListerTask or _GitLabListerTaskBase (after it has been renamed from GitLabListerTask) from being registered (which fails and prevent tasks and queues from being properly set up at worker startup time).
Migrated from D868 (view on Phabricator)