[FIX] XQuery: correct Flag.UPD check at parse time