Added some defensive error handling for cases when search results don't return values ..