FF error when inserting space at the end of an element.

https://github.com/alohaeditor/Aloha-Editor/issues/1187