app: simplify logic in gimp_paint_options_get_brush_mode()