erc: more robust handling of filtering failures