Remove preference store listener on deactivation

The listener would try to redraw a disposed widget on preference changes, even after
the editor was closed.
Merge pull request #661 from dragos/master

Remove preference store listener on deactivation