HBaseDriver: Add null check for closing HTable