[libvirt] [PATCH 6/6] Improve invalid argument checks for the public API