NPE checking and logging when configuration is not found