fix bug where media wouldn't display in UI when copied

DON'T MERGE UNTIL THE FOLLOWING STEPS HAVE BEEN COMPLETED:
- [x] Run the migration from: https://github.com/dimagi/commcare-hq/pull/2809