make sure we don't get any query results when an invalid author id or author name is passed in.

see https://github.com/GigaOM/legacy-pro/issues/2043
Merge pull request #18 from wluo/github-2043

detect invalid author name and author id