Fix bug DNN-19668: when error occurred in popup, we should not clear the cookie in this time because popup will closed and show error in parent window.