DRILL-660: Fix errors when querying a hive table with no data.