Fix error when filter has no value.