fixed TaxonMatrix generation when intermediate ranks are missing