Cleaning out missing ids from a collection.