Have HttpContextProvider return HttpContextBase instead of HttpContextWrapper