fixed bug for null values of jodatime