Fixed #21166 -- Reset errors_occurred flag after commit and rollback.