Fix #2190(filter): allow custom filter function with no term"