Actually, any item can be in any slot, so technically, because of the way inventory is coded in DSCS, the code you posted will also crash if you sell the starting items at a new game, and then enable the cheat, as your starting outfit is a Key Item, and would be in item slot 1 in that case, so...