Fixed localstorage error if it didn't exist