changes to fix issue smart search results showing wrong values for date when value is null.