avoid crash when pref.js does not exist
Merge pull request #56 from melrief/master

Avoid crash when prefs.js does not exist