solvers: Fixed indeterminism in solve_undetermined_coefficients()