Update context_processors.py

Fixes issue with other modules where a request without a user might exist and cause that module to fail.