Don't save null resource into the manager.
Adapted to Magnum changes.