Fixed bug where popup handling was broken after Selenium 1 local playback.