Resolve Issue #219

Added braces to DEBUG if statements in PreferencesController

Resolves issue #219