Bugfixes for sites not using teams.

Signed-off-by: Luke Oatham <lukeoatham@gmail.com>