[openEuler-5.10 159/496] virtio-gpu: fix a missing check to avoid NULL dereference