Properly close the stream in Rapid Diffs
What does this MR do and why?
This MR fixes the response.stream.close call to be only called on opened streams. If the stream was already closed we should not do this.
This doesn't affect the end user experience in any way but will help us to reduce errors in logs.
Edited by Stanislav Lashmanov