Fix for potential hang in rendering of response stream.