[BUGFIX] Handle response in NodeIndexing flushing correctly

Incorrect escaping of the newline character used in the flush method
in the NodeIndexing, resulting in incorrect log data if multiple
response lines were returned.