Check if classes/method exists before trying to call them in background jobs
Fix check if class exists
Merge pull request #9241 from owncloud/backgroundjob-check

Check if classes/method exists before trying to call them in background jobs