I would have to assume that any deal currently held by Yahoo would have to be upheld or compensated for if they sold to a third party. That's a contract and those just don't go away quietly.
As for one less search engine, true it might be an issue. But I'd rather they went with DuckDuckGo than Bing. Seems more in line with their stated philosophies.