[libvirt] [PATCH] qemu: avoid NULL deref on error