Fix crash when parsing a team with custom mons