Fix bug in spark exception.
Merge pull request #2493 from dart-lang/fix_spark_exceptions

[bug] Fix spark exception.