Bug fix for phantomjs HTML5 localstorage throwing exception.