After a docker failure on a recent job I noticed a single file called
"Got" in the container logs directory; turns out this had tried to
parse the error message "Got permission denied while trying to connect
to the Docker daemon socket ..." as containers.
We don't want this to fail the job hence the ignores here. However,
we shouldn't try to collect any logs if listing the containers fails.
Move creating the directory first as that is safe.
Change-Id: I41db956964f695cfcc15e30cab8cd4f8c31d3706