Avoid libvirt domain lookup if VM has not been created

When I moved setting the domain to an instance variable, I forgot that this would fail if the VM had not been created. This commit handles that.