MESH_OT_paint_mask_extract
`CTX_data_active_object(C)` returns `NULL` when there is no active object, and this was not tested for in the code.