minor change to cope with case where taxonomic categories have been removed since the XML dump, and so do not appear in the list of categories collected throught the API