qemu-sockets: avoid strlen of NULL pointer