Hi Andrew – you might have better luck replacing

if (row[EMAIL_SENT_COL] == ''){

with

if (row[EMAIL_SENT_COL] == '' && !sheet.isRowHiddenByFilter(rowIdx+2)){