Check if node is a HTMLElement before processing it