Validate for empty resource type and trait names and report an error with better message