[MOD] XQuery: Use `return` instead of `throw` for tail-call elimination.