fix for #1192 

fix for #1192

2 changes with tests:

1. If the wheel name != search_name, then return immediately. Don't pass thru to the sdist matching code, which exposes wheel link matching unnecessarily to #1217.
2. If somehow the pip code is broken, and unsupported wheels are being passed to the sorter, then at least fail with a meaningful error, not the `TypeError` which initiated #1192.

There's still a bug in sdist matching (#1217), but leaving that for 1.5, as fixing that involves more risk.