fix a dialog title issue

@ussuri, fix an issue where some dialog titles would not show up in the deployed version of Spark. Specifically, I saw this in the error dialog titles (`spark.showErrorMessage()`) when testing the dart2js compiled version of the app. This fix works in both Dartium and dart2js.