[PATCH v2] gpu: ttm: add missing NULL checks