Perturbation theory for condition $(C)$ in the calculus of variations