Some minor cleaning up [ci skip].
Fixed the issue with find previous/next in the Editor widget (closes
#411).