The ignore_unavailable option should also ignore indices that are closed

PR for #6471
I'd probably remove the needless `allowAliasesToMultipleIndices()` to make these ifs clearer. I'd also update the comment below and add a small comment here on why we are doing this.