Add message for when name attribute is omitted

Add message for when name attribute is omitted

It took me a while debug this issue of having the 'name' attribute omitted, and since posting about it on SO, I've had a few people vote for it so I guess it's a common problem