Already described in the imagefield issue queue #505860: Fragile during install profiles.
This patch should correct the problem. It still doesn't make available fielfield.token.inc, since we can't check if token is available when the database isn't available.
Automatically closed -- issue fixed for 2 weeks with no activity.
This issue has no child issues.
Drupal is a registered trademark of Dries Buytaert.