Handle similar email adresses gracefully.

YouTrack does not have an exact search. If two users with mail adresses
"a.spam@example.org" and "b.spam@example.org" exist, a search for
"a.spam@example.org" will return both users.
Fix NameError.