Fix for `template isLoggingActive` that would break if an actual log level was disabled.