Fix accidental global variable

Same as https://github.com/timoxley/HTMLImports/commit/e3962040be3194b99ab1fea6b63380b9fd5a77eb