Wrapped isIFrame test in try/catch - in case the iframe host is on a different domain.