Fix markdownlint parsing of lint at the end of a file
This MR fixes failures parsing the JSON produced by markdownlint
when the error is multiple blank lines at the end of a file, in which case the line number is one too large for the file (because of the newline).