Fix highlighting for empty lines

For empty lines (mostly at the end of the buffer) start highlighting at
the end of the previous line to still add some visual indication about
the error.