common.utils.context_processor: Check user attr existence in request
Fix the numerous "'WSGIRequest' object has no attribute 'user'" error reported in production.
See https://sentry.softwareheritage.org/organizations/swh/issues/1680/?query=is%3Aunresolved
Migrated from D3035 (view on Phabricator)