Avoid error with Polymer DOM wrapper.

As a workaround for: https://github.com/Polymer/polymer/issues/346