Fixed null pointer exception with empty set from hbase