tests: libxl: Fix a segfault when libxl configuration setup fails
tests: libxl: Fix a segfault when libxl configuration setup fails

This commit fixes a segmentation fault caused by missing conditional to
check if libxl configuration was properly created by the test. If the
configuration was not properly created, libxlDriverConfigNew() function
will return NULL and cause a segfault at cfg->caps = NULL during the
cleanup.

Signed-off-by: Julio Faracco <a9e27ab562b8d02c0041eb70cde6fe3858219fb7@gmail.com>
Reviewed-by: Erik Skultety <2c14d38fa47c8799f1b9c16280abe27f8edfec6e@redhat.com>

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