Fix generated code for the try catch except construct.