fix TypeError: undefined is not an object (evaluating '$window.applicationPreferences.get')
Fix #467. Correct $cordovaPreferences test
Merge pull request #467 from aplatanado/master

fix(plugin:appPrefs): wrong window object