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.