Fix detecting if VM was added to libvirt before rename