[AdgPath] Using a proper approach to check a joint for convexity