Fix error when viewing team and not logged in

Signed-off-by: Tyler Menezes <tylermenezes@gmail.com>