pmd: fix #1121 NullPointerException when invoking XPathCLI