Get PeriodAdapter to handle null values properly

Deal with null values correctly when marshalling/unmarshalling