fix for bugzilla 7693

if the enum member does does not parse exactly it will throw.

http://d.puremagic.com/issues/show_bug.cgi?id=7693