fix bug with remote apps
Merge pull request #2172 from dimagi/ks

fix bug with remote apps for custom case exports