app/app: return an error when assign a team which not exists and user is admin. Closes #957