Check status code of Github emails response (#1504)
Check status code of Github emails response (#1504)

If the Github email request fails the `emails` variable will be a dictionary containing error info. This dictionary has content and is thus considered as `True`, but it does not actually contain an email at index 0. 

This happens for instance with a 404, when no emails can be read.
pennersr/django-allauth,rsalmaso/django-allauth,pztrick/django-allauth,joshowen/django-allauth,rsalmaso/django-allauth,AltSchool/django-allauth,AltSchool/django-allauth,rsalmaso/django-allauth,lukeburden/django-allauth,pztrick/django-allauth,nimbis/django-allauth,AltSchool/django-allauth,nimbis/django-allauth,wli/django-allauth,wli/django-allauth,lukeburden/django-allauth,nimbis/django-allauth,lukeburden/django-allauth,bittner/django-allauth,pennersr/django-allauth,spool/django-allauth,pennersr/django-allauth,bittner/django-allauth,pztrick/django-allauth,spool/django-allauth,wli/django-allauth,joshowen/django-allauth,spool/django-allauth,bittner/django-allauth,joshowen/django-allauth