Changed search to recognise the difference between a null set and an empty set. The former occurs when there are no search terms or the search is invalid, and the latter occurs when the search terms are fine but nothing is found.