HUE-2125 [search] Invalid date label on timeline chart

Added check for valid date