Replace this.importHref with Polymer 2 compatible switch

Copied from [1]

[1] I0ab3e9ad95528989208f650fdd9876d1399b031d

Bug: Issue 11143
Change-Id: I0c12992cc062db71383301fb15e25542337f4c87
diff --git a/gr-editor/gr-editor.js b/gr-editor/gr-editor.js
index 322eb10..ad88d9e 100644
--- a/gr-editor/gr-editor.js
+++ b/gr-editor/gr-editor.js
@@ -60,7 +60,7 @@
     _importCodeMirror() {
       const url = this.plugin.url('/static/codemirror-assets.html');
       return new Promise((resolve, reject) => {
-        this.importHref(url, resolve, reject);
+        (this.importHref || Polymer.importHref)(url, resolve, reject);
       });
     },