Role of conserved quantities in Fourier's law for diffusive mechanical systems