On the second-order corrections to the quantum canonical equilibrium density matrix