Change error class handling in FPF to set classes on elements returned by the respective XPath expressions, not the original elements, closes #768
merge e3ade56a5b23ff486bea2f0950cb0014d709bbd2