drm/r600: fix possible NULL pointer derefernce