Fix issue with NullPointerExceptions with hive on tez when doing union over empty tables.