fix case details error
Merge pull request #124 from dimagi/fix-case-details

fix case details error (haven't run locally due to ES error)