Make sure the token block is not nil
Check the token's block in case it was niled while being enumerated
Use an exception rather than assertion
Merge pull request #811 from dismory/master

Assert the token's block is not nil and check it before execution