Ensure we don't examine empty token

Fixes issue #163.