Check for no tasks search results.

Explicitly check for search results indicating no tasks matched the search criteria, prior to trying to retrieve task details.