### Elasticsearch Version

8.4.1, 7.17.5

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

official docker image on Darwin MacBookBertrand.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

### Problem Description

Using an index with mapping containing a nested field, we get the "Sub-iterators of ConjunctionDISI are not on the same document!" error if the search use an intervals query and the searched value is empty (after stop words filtering for example).

### Steps to Reproduce

1. Create a simple index with a nested field and stop words filter
```
PUT /simple_test
{
    "settings": {
        "analysis": {
            "analyzer": {
                "default": {
                    "tokenizer": "whitespace",
                    "filter": [
                        "stop"
                    ]
                }
            }
        }
    },
    "mappings": {
        "properties": {
            "object": {
                "type": "text"
            },
            "documents": {
                "type": "nested",
                "properties": {
                    "content": {
                        "type": "text"
                    }
                }
            }
        }
    }
}
```

2. Add a document
```
POST /simple_test/_doc/1
{
    "object": "test"
}
```
No matter if the nested field has content or not

3. Execute a query with stop words
```
GET /simple_test/_search
{
    "query": {
        "intervals": {
            "object": {
                "match": {
                    "query": "not in that",
                    "max_gaps": 2,
                    "ordered": false
                }
            }
        }
    }
}
```

As the searched words are all filtered, the search result is
```
{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Sub-iterators of ConjunctionDISI are not on the same document!"
            }
        ],
        "type": "search_phase_execution_exception",
        "reason": "all shards failed",
        "phase": "query",
        "grouped": true,
        "failed_shards": [
            {
                "shard": 0,
                "index": "simple_test",
                "node": "gstAliy6ReeeL5eSvg1IZQ",
                "reason": {
                    "type": "illegal_argument_exception",
                    "reason": "Sub-iterators of ConjunctionDISI are not on the same document!"
                }
            }
        ],
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Sub-iterators of ConjunctionDISI are not on the same document!",
            "caused_by": {
                "type": "illegal_argument_exception",
                "reason": "Sub-iterators of ConjunctionDISI are not on the same document!"
            }
        }
    },
    "status": 400
}
```


### Logs (if relevant)

_No response_
server/src/main/java/org/elasticsearch/index/query/IntervalBuilder.java
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */
package org.elasticsearch.index.query;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.CachingTokenFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
import org.apache.lucene.analysis.tokenattributes.PositionLengthAttribute;
import org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.queries.intervals.IntervalIterator;
import org.apache.lucene.queries.intervals.IntervalMatchesIterator;
import org.apache.lucene.queries.intervals.Intervals;
import org.apache.lucene.queries.intervals.IntervalsSource;
import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.QueryVisitor;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.graph.GraphTokenStreamFiniteStrings;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;