[libvirt PATCH 10/14] qemu: agent: use GetArray to remove a check