[Bug 21661] RichEdit: Wrong behaviour when formating an empty selection