This shows the potential problem(1) of the circuit. In normal operation with a low load impedance there would be no problems. It is always good to be aware of such problems when used in certain applications.
Example: If the output is sensed by another very high impedance instrument like in automated test setup, problems may show.
First condition show that even though the transistor should be off, there is a leakage current of 170pA flowing in the b-e junction. This causes 74nA to flow in the collector, which will read as 7.47V on our measuring instrument. That error could halt out test process as detecting a fault.
This must be caused by leakage from U1's (off-state open collector impedance) and D1's reverse leakage current. Note that this leakage current will roughly double with each 10deg C increase in temperature. We must also be aware that the leakage of D1 will be aggravated by light shining through the glass body on the internal junction. Shield it from light.
To see the contribution by each, we open U1(pin1) and see that we still have 123pA through D1. Voltage on Q2 collector is still 6.09V
By adding a resistor (10k in this example, but anything up to 100k will do), we cancel or reverse this current flowing out of Q2 base. This is now -58pA, and our measuring instrument measures only 5.96mV on Q2 collector. Note the collector leakage current of Q2 is now about 1000 times smaller.