fixed error handling in Token.existing.