Fixed custom date filtering still working when entering invalid dates