Move Q_SOCK NULL check closer to usage of Q_SOCK. #6972
Move Q_SOCK NULL check closer to usage of Q_SOCK. #6972

We want the outer block to run for late materialization.

htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor