Fix #591 - check access to localstorage
Merge pull request #602 from flowplayer/bug/591

Fix #591 - check access to localstorage