Reinstate the 1.18 compatibility for AddMachines.

Fixes https://bugs.launchpad.net/juju-core/+bug/1373424