cluster/image: return error when there is no node to build an image.