Fix if statement guards in slot2_Change and slot2_setDeviceByType.

Guards against the case some dinglenut actually passes NDS_SLOT2_COUNT as a parameter (really dumb in and of itself).