[FIX] XQuery, Updating query without update operations: NPE fixed