[SD-1178] fix the javascript error in related to facet filter

I'd broken the date facets with the introduction of the modification date filter.