Highlight column on empty line correctly

If an error refers to a column on an empty line, highlight from the end
of the previous line.

Also simplify `flycheck-error-region`.
Highlight errors beyond end of line correctly
Merge branch 'master' into unit-tests

* master:
  Highlight errors beyond end of line correctly
  Highlight column on empty line correctly
Test error regions