Correct infinite loop on dashboard when user cannot create teams and has no memberships (fixes GH-751)