[FIX] XQuery: empty() checks fixed