Fixing `TurtleIO.respond()` such that it doesn't crash if middleware has terminated the response