[PATCH 5.10 171/545] virtio-gpu: fix a missing check to avoid NULL dereference