MDL-46529 - Adhoc task queue can fail if task class has been deleted