remove all nodes that do not have text node children