The robots would have had access to the source code and also the hardware manufacturing systems used to create the kill switch. One unverified silicon wafer == Game over
Implementing a system like this with stringent verification and low system complexity in good time before any more general artificial intelligence makes it seem highly likely to provide some positive defensive ability and not being easy to cheat.