Dispersion of third-harmonic generation in ultrastrongly coupled organic cavity polaritons