Embedded star clusters and the formation of the Oort cloud: II. The effect of the primordial solar nebula