Revisiting migration in a disc cavity to explain the high eccentricities of warm Jupiters