[libvirt] [PATCH v4 07/30] conf: Improve error handling in virDomainChrDefFormat()