Fixed 'Bug 11641 - Bracket removed occasionally when inserting text
right after'.