[Bug 16597] Wrong detection of SelAttributes in RichEdit