bugfix: if an internal node becomes a leaf, it needs to be removed too
bugfix: if an internal node becomes a leaf, it needs to be removed too

Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara