isLocalStorage test improvement

in safari private mode, localStorage object is available but fails to store objects

http://stackoverflow.com/questions/14555347/html5-localstorage-error-with-safari-quota-exceeded-err-dom-exception-22-an