Check if node is a HTMLElement before processing it
Merge branch 'fix-non-htmlelements'