Fix XPath implementation throwing exception
Merge pull request #421 from sharwell/fix-xpath

Fix XPath implementation throwing exception