Migration of giant planets in a time‐dependent planetesimal accretion disc