get_transfer_file_info: only return precise matches

Elasticsearch's top match may not actually be an exact match, even if an exact match is in the set.

Fixes #7001
Fixed by moving `results = ...` outside the if statement and keeping only the `elif result_count > 1` case.

Also pushed a new commit that raises if no exact results are found.