[libvirt] [PATCH] qemu: avoid null pointer dereference