workaround for 500 error involving remote apps and multimedia

http://manage.dimagi.com/default.asp?119395
Merge pull request #3760 from dimagi/case-119395

workaround for 500 error involving remote apps and multimedia