Fixes inclusion check for viewing teams page

The check was being done in the team's create action causing an internal server error when creating a team.