Fixed an issue with XPath evaluation in certain browsers and versions.