Validate XPath before sending it to selenium as it tend to provide more helpful error message browsers
Fix broken XPath generation
Improve JenkinsController.diagnose