(#1727) - Short-circuit hasLocalStorage if Chrome

Any calls made to `localStorage` in Chrome Apps will return:

> window.localStorage is not available in packaged apps. Use
> chrome.storage.local instead.

Therefore, guard against it if we're in a Chrome App.

Closes #1727.