bug fix: Only valid text elements are returned from an XPath query contain /text()