Only rexecute do_tag if filter is not empty

This will prevent tagging every simgle message if do_tag was triggered
on an ampty search result.