Avoid causing an exception when there is no session available, as
happens with the test user in data.db.
Fix typo in method name.
Skipping local changes: whole method refactored, has ValueError trap
now.
Merge branch 'master' of github.com:thaxter/django-xadmin