docker: fix fallback when the teams field does not exist.

closes #675.