Fixed node list comparison in case of empty text nodes between elements