Fixed PyQt5 compatibility problems in richtext.py plugin.

Leo build: 20141204081239