[libvirt] [PATCH 6/7] util: Create common error path for invalid object