Correctly set the team slug if name is empty
Merge pull request #1154 from Tonkpils/fix-empty-name

Correctly set the team slug if name is empty