Datum.cc: Make more robust to strange input datums