Make registry injection globally optional, e.g. allow null