No need for fancy computer links to catch this. Immigration simply sees that new Taiwan departure stamp when they open your passport, together with the TWOV stamp and your boarding pass for Taipei flight.
Cue up that heart-pulsing theme from Midnight Express.