detect invalid author name and author id

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