Changed mongo query to use new machineid

This fixes https://bugs.launchpad.net/juju-core/+bug/1387172 which is caused by the changes to machine _id