How to check if request.UrlReferrer is there or request is set because sometimes i get error for request is not set in context