Yes, that was clear. You say it uses localstorage, and only fallback to native when localstorage is not available. This is not the scenario of the bug. Here, localstorage is available, it just has been wiped out.
Native storage protects against this scenario, though. It isn't safe to assume that localstorage will be retained.