Fix for AttirbuteError if request.authorization is None