localstorage: fix initial value setting

To quote @torhve: "Looks like localStorage returns null instead of undefined in some cases, this will fix so that our default settings will work again, not only our default settings that were negative :-)"