Yep, there is a CSS3 pseudo selector for empty elements, so you can use this to hide the empty elements.
e.g.
<style>
p:empty { display: none; }
</style>
the problem is its browser compatibility, as shown on this first refference link.
References:
http://reference.sitepoint.com/css/pseudoclass-emptyhttp://www.w3.org/TR/css3-selectors/#empty-pseudoYou could create a simple bit of javascript to fix this though in unsupported browsers.
Found an example of this here:
http://www.webmasterworld.com/css/3944510.htm