Fix problem where building Dockerfile `FROM name:latest`

could not find image id.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)