Null check on optional properties in accessors.