media_map: handle deleted media docs