Fix HttpContext is null.