If empty clusters are detected during KMeans iterations, the centroids are simply persisted as-is. Therefore, there will always be the same number of final centroids as there were initial centroids.