Handle deleted players and teams in templates