fix table error when there's no data
Merge pull request #925 from dimagi/new_casedetails-mwhite

fix table error when there's no data