Check validity of Preferences.sublime-settings before modifying.

Closes #131