Fix crash in FireFox when pop-up is initially blocked.