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