Bug 1330472: Catch NoIdError while reading virtual machine

Change-Id: I99e7c08130dbb449d5db16ce5e67bd079ece169c