Fixed crash when you retrieve the teams by the endpoint and there are no teams