some bugfixes for trialconnect reports
Merge pull request #1417 from dimagi/tc-qa

some bugfixes for trialconnect reports