[PATCH 5.15 134/215] tc-testing: dont access non-existent variable on exception