Вот еще один простой способ ... с помощью фильтра () ...
$('div').filter(function() { return $.trim($(this).text()) === '' }).remove()