[libvirt] [PATCH] Fixed NULL pointer check