stop iterating over registry once user found

see-also: #2458