fix null/empty string check in ng_call_stats

If no tag is specified in the `query` command, then `fromtag` and `totag` are NULL strings, but not NULL pointers.