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