[libvirt] [PATCH 6/9] util: sanitize return values for virIdentity getters