Validate component.json so to throw an error if "name" attribute is missing

referenced here: https://github.com/component/component/pull/241