For now, the only real solution to this is to send in one last scout mission, to arrive 30-45 seconds before your forces hit, so you have time to decide whether to continue the attack or recall...

Saves losing your forces to a newly barb'd city, even if it means you lose the marching time.