Fix bug in dendrogram with empty value