Ignore null bytes when measuring character widths in React editor

Fixes #2391
Don't forceUpdate in setImmediate callback if editor is unmounted

This was throwing errors in the EditorComponent spec.

/cc @benogle, just so you're aware
Merge branch 'master' into cj-add-react-editor-shims