break when there are no more tokens

Else, we could error if the token is `undefined`. I ran into this when using this plugin in combo with jsfmt.