[libvirt] [PATCH] qemu: check for json allocation failure