Ah, yes ... the old, "if everybody would just..." argument. If everybody would just program their robots to not shoot women and children....
Knowing that, how long do you suppose it would take a sufficiently bad guy to make soldiers of his women and children? And then what?
The real issue, of course, is that robots mainly represent a way to inflict tremendous damage on the enemy with minimal risk to one's own people. If both sides restrict their attacks to the other side's robots that's all very well and good. But of course that wouldn't happen. To deal with the robots, you deal with the factories and eventually the cities in which they reside; and then you point your robots at the population at large to take away their will to wage war.
Hell, we've already got that well in hand: how many nuclear missiles have we and the Russians and the Chinese (among others) got pointed at each other already?
That's one reason nuclear proliferation is a threat in itself - the addition of automated systems is necessary to provide maximum speed and reliability in M.A.D. scenarios that ensure stability in reluctance to use nukes in a first strike. If a human component is disabled for any reason (cyber warfare, conventional attack, etc.) the ability to enable the weapons under their control to strike back without them is required. Also, for maximum speed in targeting and launching, machines must be used at least in all stages prior to authorization for actual launch.
There have been a few documented cases (that governments will admit to) where launches of missiles that might have provoked a larger response occurred. Norwegian air defense batteries went to a "go" status for launch when some Russian missile tests triggered their network.
When nuclear missile systems are in a constant state of readiness, there is always a risk that a false "go" scenario could be inadvertently triggered even with all of the available "fail safes" in place.
Since hostile powers do not communicate with each other directly in the case of missile threats and yet they monitor each other eternally in real time and there are literally only a few minutes to decide whether a threat is real or not, the risk of thermonuclear exchange by accident looms always over the globe with thirty thousand missile or bomber-loaded nukes deployed globally (that are known).