Ignore empty strings for text selection.
They were causing double text selection.
Merge pull request #2781 from waddlesplash/textselection

Ignore empty strings for text selection