Fixed InternalError for latest changes to dart:core Error

Seems a good idea.