avoid crash when pref.js does not exist