check for presence of ObjectManager in ObjectManagerAwareInterface job before clearing

ObjectManagerAwareInterface::getObjectManager() may return null