fix NPE when sent date is null