Clear old localstorage value on failure.