Incorrect error checking in enum value parser

Parser now prints a warning message the value can't be determined.