[Amibe] Fix logic error in AbstractAlgoHalfEdge.processAllHalfEdges

processEdge() could be called on an edge such that canProcessEdge() is
false if it is the last item in the sorted tree.
Thanks to B. Chaigne for report and help on this bug.