Setting possible empty values to null & adding avatar_url for github aut...

Github users might not have set a github name or given access to email, in this case the github authentication throws an error. This pull request fixes this setting possible empty values to null.