Fixed a PyQt5 crasher in richtext.py plugin.

Leo build: 20141107062928