You're right, they will still run the diagnostic. The trick is keeping the light off for the p0420 code, but keeping the sensor active so that it detects the catalyst diagnostic. Once the rear O2 picks it up, it stops. The sensor is either bad, or the circuit is damaged. The P0140 is telling you that one of those two things are happening.