Ensure balanced JD_TRY / JD_CATCH.