Bug 796623 - Settings throw error in B2G desktop

Fix for [#796623](https://bugzilla.mozilla.org/show_bug.cgi?id=796623). This causes a bunch of settings not to work under B2G desktop, f.e. App permissions.