[libvirt] [PATCH] Fix possible NULL pointer dereference