The new paint cursor (introduced in rBe0c792135adf) could crash for 2d painting without an active object.
Note there are still drawing asserts (because we are mixing 2d and 3d drawing in 'paint_draw_cursor'), but these will be handled in a seperate commit.
part of T69957
