Cope with localStorage not being available

IE10 doesn't allow localStorage for HTML pages loaded from the file://
protocol.
Boo.