Do not grep if the pattern is empty