[Activate] fixes for html imports and execute scripts when loaded

- fix: if src is empty, don't replace with inline
- don't remove src for html imports (Polymer caches in the local storage and other templates use script)
- fixed script to execute when loaded inline