The effect of reversible flux motion on the estimation of critical current density in a thin superconductor using a third harmonic voltage method