Throw an exception when search block returns false or nil

If your search block returns false or nil that means search is unavailable.