Prevent fatal error if access token data is array

Fix #239, closes #240
Merge pull request #242 from stloyd/patch-2

Prevent fatal error if access token data is array