Handle None value for dates