DOCKER-74: docker build: correct the IMGAPI delete image call * only called when an error occurred during IMGAPI image create/upload
DOCKER-74: docker build: correct the IMGAPI delete image call
* only called when an error occurred during IMGAPI image create/upload

joyent/sdc-cn-agent,joyent/sdc-cn-agent,joyent/sdc-cn-agent