[libvirt] [PATCH libvirt-glib 2/5] tests: fix potential crash