Because the U1C and U1D are the open collectors, when they are all low then it's fine and when any one is low and the other one is high, the high is a high impedance, so it won't be affecting anything, when they are all high then the R9 will be providing the high level for the Vb of Q1.