Fixed exception in empty result of search