Fixed issue with team not existing when team page viewed