added an if statement if the settings are incomplete.

needed to do this to fix a crash.