Fix a bug in the commit for HIVE-2416.

This bug causes an exception in reduce_deduplicate_extended.q.
Make HIVE ClientPositive test pass.