[libvirt] [PATCH] qemu: avoid dereferencing a NULL pointer