ensure docker image was built before attempting to remove