[PATCH 6.6 246/341] tc-testing: dont access non-existent variable on exception