Fixed NPE when log.debug system property is not set