Added error handling for empty searches
	modified:   index.php