Core: The ignore_unavailable=true setting also ignores indices that are closed.

Closes #6471
Closes #6475