[FIX] XQuery, GH-953: NPE while parsing function reference.
Merge pull request #954 from LeoWoerteler/gh-953

[FIX] XQuery, GH-953: NPE while parsing function reference.