instanceof fails when the constructor object is from a different iframe than the obj was created with. Also, the undefined check isn't helpful.
Merge pull request #5 from ljharb/fix_instance_of

Fix instance of