Fix #13202 by failing more eagerly in tcRnStmt