fix/16868 : add try/catch when no logs are retrieved in log search

2 jobs from fix/16868_unexpected_log_return_in_search in 42 seconds (queued for 7 minutes and 10 seconds)
Status Job ID Name Coverage
  Build
failed #31248
build

00:00:42

 
  Tests
skipped #31249
tests
 
Name Stage Failure
failed
build Build
$ docker info
Client:
Debug Mode: false

Server:
ERROR: error during connect: Get http://docker:2375/v1.40/info: dial tcp: lookup docker on 213.186.33.99:53: no such host
errors pretty printing info
Cleaning up file based variables
ERROR: Job failed: exit code 1