Fixed 'Bug 20407 - Failed assertions in text editor'.