Small clean up in component instantiation

Review URL: https://chromiumcodereview.appspot.com//12386060
Merge pull request #2 from dart-lang/master

Merging latest web_ui changes.