Fix initialization bug, that depends on a non-undefined return from local storage