Catch case where generator returns no results