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