Support use case when iframe element is not yet added to the DOM