Smoothing of singular Legendre transforms in renormalization group flows