Making sure that document information entities will not be printed if they are NULL