Improved hanlding of logger when not configured.