A conditional density theorem for the zeros of the Riemann zeta-function