Update instrument.utils.parentWindow to handle iframes better