Make sure the docker data has a "Names" field before using it

Fixes #7363
Merge pull request #7404 from jimi-c/issue_7363_docker_names

Make sure the docker data has a "Names" field before using it