Check popup for null, source could be blocked for some reason
Only do siteChanging for the main frame