fix bug with remoteapps when publishing to exchange
Merge pull request #1260 from dimagi/ex-bug2

fix bug with remoteapps when publishing to exchange