Fixed NPE when joda-time value is null (ideally it shouldn't be null, but adapted to the real world)
Removed warnings since Scala 2.10