It seems that the text type is not set but the token is set. I am not sure why.
the line is
$type = $info['types'][$type]['name'];
the "text" type is not created
This is a bug in whatever module provides the 'text' token type or tokens then, likely Entity API?
This issue has no child issues.
Drupal is a registered trademark of Dries Buytaert.