Position info fix: use the current token as the last token if only one token was consumed

The old behavior would use the previous token as the last token
Merge pull request #12 from ajaxorg/fix/position-info

Position info fix: avoid using previous token