handle index cleanup when model.collection is undefined