This solves a perf issue for views which produce content that is smaller than the buffer size of HttpResponseStreamWriter. In this case, the writer ends up synchronously writing to the Response as part of Dispose which affects perf.
Return task rather than awaiting when no extra work needs to be done after await