fixes call to window.HTMLImports for polymer templates loading