Closing all popups when redirecting to error page

https://tree.taiga.io/project/taiga/issue/1044