"Sub-iterators of ConjunctionDISI are not on the same document!" error

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

1- Create a simple index :

PUT simple_test
{
    "mappings": {
        "properties": {
            "object": {
                "type": "text"
            },
            "documents": {
                "type": "nested",
                "properties": {
                    "content": {
                        "type": "text"
                    }
                }
            }
        }
    }
}

2- Add a document

POST simple_test/_doc/1
{
    "object": "test"
}

3- Execute an empty intervals query

POST simple_test/_search
{
    "query": {
        "intervals": {
            "object": {
                "match": {
                    "query": "",
                    "max_gaps": 2,
                    "ordered": false
                }
            }
        }
    }
}

For this example I specified an empty value, but querying a searched value wich is cleared by some filters have the same result.

Tested with Elasticsearch 7.16.1

With ES 7.2.4 (and before) this error does not appear