Fixed "parse undefined" for when localstorage is empty