Remove empty metadata before printing.