Checking for null HttpContext in HttpContextProvider