Check whether AccessToken is not null

Otherwise the following header will be sent:
Authorization: Bearer null
Merge pull request #383 from LeovR/patch-3

Check whether AccessToken is not null