Fix invalid argument warning in SearchController.php

`$search['result']` (populated from `Search::find()`) be `false` instead of an array, if the SQL query failed for any reason. This causes an invalid argument error when the code in `SearchController` tries to iterate over that.
Merge pull request #2326 from solarissmoke/patch-4

[-] FO : Fix invalid argument warning in SearchController.php