fix recently introduced bug in publishing apps to exchange
Merge pull request #1259 from dimagi/ex-bug

fix recently introduced bug in publishing apps to exchange