Contribution of collective excitations to third harmonic generation in two-band superconductors: The case of MgB2