HTML Imports polyfill resolves document.currentScript in a way that
requires additional handling to determine URL of the loaded script. With
this change, __importElement is used to locate HTML import node to
determine original plugin URL.
Bug: Issue 8647
Change-Id: Ibf6d63ab32d3b2f55272cae21b5891562f46d37a