Fixed issue with empty search date.