tdm_hwc_window_set_buffer_damage: add a checking to NULL pointer for damage region