[libvirt] [PATCH] esx_util.c: avoid NULL deref for invalid inputs