Prevent stack overflow in CannyED.follow()