fix for export 500 on legacy (remote only?) apps
don't 500 on custom exports for remote apps
Merge pull request #3716 from dimagi/remote-exports

better support custom exports for remote apps