Fixes https://github.com/Polymer/polymer/issues/380.