Fix avatar error when user's git does not set the name and email.