Issue on empty param

The function returns "31/12/1969 21:00:00" when pass empty date param.
Fix TimeHelper returning 1969 on invalid dates.

Instead of returning 1969, TimeHelper should return the invalid date,
and if that is missing '' should be returned.

Fixes #4294
Merge branch 'issue-4294' into 1.3