Fix a notice in MetaModelFactory
Fix notices in MetaModelAttributeFactory.