Fix + test for #80

Drop the map_reduce result collection before inserting the results into
it.