Set metadata to empty when machine._image is None