Make MemoryDOMElement robust against missing 'attributes'
Make MemoryDOMElement robust against missing 'attributes'

Some DOM node types (text, document) do not have attributes.

michael/substance-1,michael/substance-1,substance/substance,substance/substance