Police have thanked two drivers who helped with an incident involving a "high risk" missing person on a major A-road.