Explicitly check whether the meta-attribute name is valid

Sometimes the class may simply have no properties, but the
meta-attribute name is still valid and we shouldn't die.
Add a test for failure case
Line no longer needed
$self is class_name->__meta__
Merge pull request #8 from apregier/master

Explicitly check whether the meta-attribute name is valid