fix($compile): fix duplicate style attributes

This fix avoids duplicating style attributes in directives that specify
'replace: true' and 'template: &lt;div style="..." /&gt;'.

Closes #6239
does this test fail without the change to the compiler? it doesn't look like it should