Handle unclustered objects in rand_index