Fix for note editor prepopulation

Older versions of Qt do not have hasSelection on web views.