fix bug in application wrap fn; (Case: 56248)
Merge pull request #837 from dimagi/bfix

fix bug in application wrap fn; (Case: 56248)