Prevent deserializedFromTemplate to be called on null values