drm/ttm: Fix a NULL pointer dereference