Set the Tasks addon only to active if it is actually enabled

And still add some more guards to the "is active" checks to ensure
the addon is enabled at all.
Otherwise the addon tries to update the task list which does not
even exist.