MetadataBuilder.applyMetadataChanges fix for external properties

fixed #422