Refresh team flags after using [modify_side] color= without a new flag set

Fixes bug #21867.