Fixed bug where localStorage initialization would fail on Firefox/Chrome with disabled support.