Fix #6940, error traceback output to console crashes under QScintilla 2.7