[libvirt] [PATCH v2] Fixed NULL pointer check