Fixed NULL handling problem for timestamps.