edit_teams_and_groups widget: Added case in views.py to handle attempts to modify nonexistent teams. This occurs if a team is deleted in delete_teams_and_groups but still appears in edit_teams_and_groups temporarily.