[FIX] XQuery, #873: raise dynamic error for non-updating expressions