Use nearest edge instead of nearest vertex for UV island selection, or you may get a far away UV island that happens to have a vertex nearby.
Use nearest edge instead of nearest vertex for UV island selection, or you may get a far away UV island that happens to have a vertex nearby.