added try/except in filtering email recipients