[minor] prevent from braking when localStorage is not supported. This is a temporary fix that can be undone once #199 is fixed

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm