[FIX] XQuery, GH-958: Ignore compile-time type errors involving fn:error().
Merge pull request #959 from LeoWoerteler/gh-958

[FIX] XQuery, GH-958: Ignore compile-time type errors involving fn:error().