Fixes incorrect optimization of try/catch statements