Probing quasi-integrability of the Gross–Pitaevskii equation in a harmonic-oscillator potential