Fix DateSerializer NPE

Fix NPE when saving a model with a null date.