Fix RDG check for endpoint uniqueness (#67591)