Return an error if the image has not been built yet.