localstorage: fix initial value setting

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 :-)