#16937 - ignore possible empty last line