Remarks on the regularity of the minimizers of certain degenerate functionals