[LHTR] Refactor HTML editor updating to SyncHTMLToView().

For #1497.
[LHTR] Return synced content in HTML getter.
[LHTR] Don't sync HTML to View if there are parse errors.

Fixes #1497.