RunTimeError avoid when response.direct_passthrough = True

If the response is using werkezug.wrappers.FileWrapper the direct_passthrough is set to True, and the iterator of the response.data will raise a RunTimeError.