Error fix that occurs in $.fn.contents when elem is iframe.

Error fix that occurs in $.fn.contents when elem is iframe.
Exception: "DOMException". Exception name: "SecurityError".