Fixes https://github.com/Polymer/core-overlay/issues/20.