Fix date filter for empty or non date fields