Fix a bug when token.data is undefined
1.0.5