Fixes for XPath methods related to JDOM2