I'm not sure how changing the condition would fix that. I don't think it's worth trying to detect this, at the cost of more output in the console. We can catch such problems at review time or in update-testcase.py or some other presubmit tool, etc. But any of those should be done in a subsequent change.