Fixes https://github.com/Polymer/CustomElements/issues/130. Test in platform-dev repo.