Fixed bug with the user synced attributes when the user doesn't exist
What does this MR do?
Fixes a bug when the user does not exist and we try to retrieve their synced attributes. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17054
What are the relevant issue numbers?
Refs #37528 (closed)