Check for localStorage with Modernizr before attempting to use it. Solves foosel/OctoPrint#91