Fix "DOM Exception 18" error in Android Chrome

In some browsers, Using localStorage could cause error. see http://stackoverflow.com/questions/16427636/check-if-localstorage-is-available