Fix of mistake from 226359ec48. `reverse_indices_in_groups` is
used in other one function (`build_vert_to_corner_indices`), so handling of
empty corners array should be moved into itself.
Pull Request: https://projects.blender.org/blender/blender/pulls/111815