Added protection around the child iframe iterations.