Fix assert in setFilterError.