Change how RazorPage determines if FlushAsync is allowed