Check for empty selection in expandSnippetUnderCursor