vz: fix missed defined domain event
vz: fix missed defined domain event

libvirt domain defined event is issued only on correspondent vz sdk
event. But in case event delivered before domain is added to
domain list we can mistakenly skip this event if prlsdkNewDomainByHandle
return NULL in case of domain is discovered in the list under
the driver lock. Let's return domain object in this case.
Now prlsdkNewDomainByHandle returns NULL only in case of
error which is more convinient.

Signed-off-by: Nikolay Shirokovskiy <7fa0e2698a05be944b362bdf5d7736c0162e16c9@virtuozzo.com>

eskultety/libvirt,datto/libvirt,olafhering/libvirt,libvirt/libvirt,olafhering/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,libvirt/libvirt,eskultety/libvirt,zippy2/libvirt,fabianfreyer/libvirt,taget/libvirt,datto/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,eskultety/libvirt,nertpinx/libvirt,eskultety/libvirt,libvirt/libvirt,jardasgit/libvirt,olafhering/libvirt,jfehlig/libvirt,datto/libvirt,datto/libvirt,taget/libvirt,nertpinx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,crobinso/libvirt,zippy2/libvirt,datto/libvirt,nertpinx/libvirt,crobinso/libvirt,olafhering/libvirt,taget/libvirt,zippy2/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,jardasgit/libvirt,nertpinx/libvirt,andreabolognani/libvirt,taget/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,eskultety/libvirt,jardasgit/libvirt,zippy2/libvirt,crobinso/libvirt,andreabolognani/libvirt,taget/libvirt,libvirt/libvirt,jardasgit/libvirt,crobinso/libvirt