set media_map to empty dict instead of null
Merge pull request #1457 from dimagi/emulator

set media_map to empty dict instead of null