need to check when moveNextToken() fails
Merge pull request #4138 from adobe/randy/issue-4129

Need to check when moveNextToken() fails