[libvirt] [PATCH 2/2] node_device: avoid null dereference on error