[libvirt] [PATCH v2 2/3] conf: Move target index validation