Prevent a crash caused by a stale model index
While the EditGroupDialog is open the model may be updated (e.g.
because the Tags column is enabled in the EditGroupDialog but not in
the main view). This will invalidate the group index. Get a fresh index
by looking up the index of the updated group in the model.
- GnuPG-bug-id: T5638