On the validity of the cumulant approximation for spectral line profiles