Bug fix: the lookup/scan/lookgrep didn't handle empty dictionary.