The Role of Multiphoton Ionization in Harmonic Generation by Wave-Mixing