SOLR-7818: Distributed stats is only calculated with the terms that are present in the last shard of a distributed request