(#1905) - avoid localStorage.clear() for IE