Ignore empty selection in grep command.

When the grep command is triggered the current selection is used to
initialise the grep expression, but this should not happen if the
selection is empty (leave the content untouched).