Remove empty rows from notification email table isn't working