Fix crash in FireFox when pop-up is blocked