fixed crash when freezing a Shape
added null argument checks in FeatureStruct