Fix a crash bug when deleting a record

If the table of the record has _key and _key is indexed from two or more
index columns, deleting causes a crash.