Don't assume AuthenticationMiddleware in context processor

@alex-moon saw some issue where Django would head for the 500 handler
and request.user wasn't set.

This is the more descriptive and pythonic version of his fix.

Fixes #1338.
Fixes #1339