Check for null file logger switch to avoid exception