vz: fix crash when parsing unexpected disk configuration
vz: fix crash when parsing unexpected disk configuration

As it turned out PrlVmDev_GetStackIndex can return negative values
without reporting an error, which is incorrect but nevertheless.
After that we feed this negative index to virIndexToDiskName,
which in turn returns NULL and we set it to virDomainDiskDef.dst.
Using virDiskNameToBusDeviceIndex with a virDomainDiskDef structure
which has NULL dst field crashes.
Fix this by returning an error in prlsdkGetDiskId in such cases.

Signed-off-by: Maxim Nestratov <3521c777060d1ad4ae08bba7eb9d80264eaeb236@virtuozzo.com>

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