bz19918: set invalid timedelta values to NULL