Fixed #861: FPF error insertion fails if XPath expression yields more than one location in the document
merge 96d4449f8bc21f8d7943ccd33ece0e231ba38457 to 94a56713ac7e5e786e3554c5683ba4b528214a9a (from 0.11)