Merge pull request dart-lang/stack_trace#38 from dart-lang/cast-failure

Fix runtime cast failure in chainForTrace().