Fix NPE, make sure ClientPrefs exists at all times
change assert to exception
fixed exception throw on getInstance
Merge pull request #1001 from garvankeeley/npe-prefsscreen

Fix NPE, make sure ClientPrefs exists at all times