Add loggerCreateWasCalled check to avoid log4j PropertyConfigurator
from being called in a recursive storm in the failure case.