[PATCH 5.10 14/24] drm/ttm: add a check against null pointer dereference