Toolbar middleware can raise an IndexError when logging in

~~Fixes Issue [3078](https://github.com/divio/django-cms/issues/3078).~~

Edit: forgot each PR is it's own issue.

No test because I'm not sure where to begin with that.