A stability result in quasi-convex programming