Fixing small bugs when objects do not already exist in localstorage.