Fix authentication when user does not have a public email

Hi there. I was running into issues when trying to authenticate my github account, and was able to track down an edge case.
Turns out the lib was expecting everyone to have a public email and was not handling a null check.