Fixing nullpointer when logger is not set