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