Made getting UIDs of a key to be more robust. Not every UID can have an email