build: ignore empty style attributes in templates and remove missed console.log
build: don't merge <style>/<link> with id attribute
build: add id attribute on replace style <link>