A Stabilization of Algebraic Phase Unwrapping by Subresultant