Contribution of Collective Excitations to Third Harmonic Generation in Multiband Superconductors: the case of MgB$_2$