If the capacitor is not charged, the plates of the capacitor will start getting charged up to the point the potential difference between the plates and the battery is zero. Meanwhile, the dielectric is polarized according to the charge on the plates.