Avoid exception loop when taxon name is null (#4996)