Use correct template when templates are derived using item.to_partial_path

@collection_data is an Array containing the partial path for every item. When an item is deleted from @collection, it also needs to be deleted from @collection_data so that the indexes match those of the items remaining in @collection.