Fix crash in DropIndex()