[libvirt PATCH v2 04/20] commandhelper: Consolidate error paths