Fix reverse of record_state(new_record and id) after rollback, fix #7807