fix issues with incorrectly formated media profile files
Merge pull request #1515 from dimagi/mm

fix issues with incorrectly formated media profile files