Avoid JS fault

When displaying the date filter