gh-105658: fix excess trace events for except block ending with a conditional block (#109384)

4 files changed