Fixing localstorage check. Breaks on some Android phones

Touching window.localstorage throws an exception on some Android phones and browsers with tighter settings. DOM Exception 18