Avoiding display of null messages