Here is how…just put this on the top of your template…
<?php
function bm_dont_display_it($content) {
if (!empty($content)) {
$content = str_ireplace('<li>' .__( "No categories" ). '</li>', "", $content);
}
return $content;
}
add_filter('wp_list_categories','bm_dont_display_it');
?>