An imam overtaken by hadath may appoint a qualified follower to complete the congregation. The replacement must be eligible and already suitably part of the prayer.
Opening interactive controls...
Appointing a replacement imam
Hadath during Prayer: Building, Restarting and Twelve Final-Sitting Cases
An imam overtaken by hadath may appoint a qualified follower to complete the congregation. The replacement must be eligible and already suitably part of the prayer.