Fixed bug in the sync method caused after backspacing past the initial code in the editor (<p><br/></p>)