Fix parsing sibling nodes and nodes without text