sanity check terms returned with authority records to make sure they're valid in the current db. this fixes a fatal when searching for some authors.

see http://github.com/GigaOM/legacy-pro/issues/745
Merge pull request #40 from wluo/github-745

sanity check terms returned with authority records