dom/event/message: fix #data and #source instanceof checks