drm/v3d: fix a NULL vs error pointer mixup