Fixed NPE if matched parent docs is higher than short_circuit_cutoff.
Closes #4135