Fix use of ternary operator in RegistryFacade