[libvirt] [PATCHv2] storage: avoid null deref and leak on failure