Which stage is decisive in the unintended fifth rakah?

Prostrations of Forgetfulness: Causes, Method, Missed Sittings and Doubts