Added error handling in search.php (moved include in torrent.php)