Refactor yz_wm_search:resource_exists/2; add tests for PB and HTTP
Incorporate review feedback

- Replace spaces with underscores in bad index name.
- Close ProtoBuf PID after use.