Check if iframe actually exists in dom before writing to it.
Merge pull request #208 from tobyk100/master

Check if iframe actually exists in dom before writing to it.