Fix: handling null

Although null is suitable as argument for DateTime it leads to
unexpected results in this context.