[3.4.x] Fixes #2943: in bundle edit_line, no kept reports on last line

Refs : https://cfengine.com/dev/issues/2943

On insert_lines, when a promise is kept considering the last line of the file, the reporting is invalid due to two successive pointer increase.
This pull request fixes this pb