Added storage clear, if localStorage data is erroneous