fix bug when trying to view certain applications
Merge pull request #555 from dimagi/media-hotfix

fix bug when trying to view certain applications