Fixed a rare issue where invites were not being removed when a team was
disbanded