Only write preserved media queries style tag is not empty

A `<style>` is always added to the end of an emogrified HTML, regardless of whether it has any content. Wrapped it in a simple `empty()` check so no `<style>` element is appended if it has no content.