Added check in sitemap_index to check if $tax exists in $all_taxonomies.