[libvirt] [PATCH] mdev: Fix mingw build by adding a check for non-NULL pointer