Monitoring dispersive samples with single photons: the role of frequency correlations