Empty search results return soft 404

Use a web service such as W3C Link Checker to find out the broken links and fix it. Also based on what you described, if it a self-developed theme and caused due to search, make sure you will have a content template that handle the none content situation. You can check your theme’s search.php and see how it handles the none content situation.