Fix linting error.
[bug 1017850] Check for localstorage