[libvirt] [PATCH v3 10/26] qemu: Tweak index number checking