dont try to register background jobs if we haven't upgraded yet

Backport of https://github.com/owncloud/core/pull/6392 to stable6