Added a sanity check that correctly catches the duplicate-name-in-dendrogram problem.