Fixed IE exception due to iFrame being unloaded