Team: fix NPE when finding the team for players who don't have one