fix($compile): fix duplicate style attributes

This fix avoids duplicating style attributes in directives that specify
'replace: true' and 'template: <div style="..." />'.

Closes #6239