Fix grep-gtags so that empty pattern can be used

Signed-off-by: Bao Haojun <baohaojun@gmail.com>