Cherry pick https://github.com/Polymer/core-overlay/pull/33

Fixes https://github.com/dart-lang/paper-elements/issues/58