I just looked at all the code and can't see how it could happen. (Doesn't mean it can't though, I've certainly overlooked things before.)
Any chance you could get a screenshot next time with the url of the popup and the page in it?
Any chance you could get a screenshot next time with the url of the popup and the page in it?