fix errors thrown on non-chrome browsers from WBLocalStorage