(#1845) - Fix global localstorage clear