Fix AttributeError when there is no request.site
(we should always add .site to request)