Description
The class org.apache.logging.log4j.core.lookup.EnvironmentLookup may throw an NPE when calling System.getenv() if the key argument is null.
The Javadoc for our lookup method states that a key may be null, so check for that condition instead of throwing an NPE.