[PATCH 6.10 159/273] tc-testing: dont access non-existent variable on exception