tests: Fix possible NULL deref
tests: Fix possible NULL deref

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