[libvirt] [PATCHv2 2/3] conf: tighten up XML integer parsing