Guarding against RegistryService not being available.