Corrected error when search returned nil instead of empty
Merge pull request #105 from ministryofjustice/bug_error_on_search_returning_nil

Corrected error when search returned nil instead of empty