I modified the product-details.tpl file and added the following code to the custom javascript code to help you to achieve the feature:
$('.product-features .title_block').each(function() {
if (!$(this).next('p').length && !$(this).next('dl').length){
$(this).hide();
}
});