Safely check settings for DEBUG_SETTINGS.
Merge pull request #1030 from garnertb/master

Safely check settings for DEBUG_STATIC.