check for multimedia_map being None

none of us know how or why that would ever happen
but we get 500s
Merge pull request #2360 from dimagi/mm-none

check for multimedia_map being None