[Libvirt-cim] [PATCH 4 of 5] Add check in EAFP to ensure ref passed is an actual instance