Improve error messages for _stats
with closed indices
#13012
Merged
Loading
_stats
with closed indices
#13012