Safely check settings for DEBUG_SETTINGS.