Fix handling of docker image with no tags