Fix issue with events and non Element/Document nodes

Fixes https://github.com/Polymer/MutationObservers/issues/6