Avoid error document.cookie = null