fixed ConfigFactory class - wrong check to null value