fix enums to return nil on unknown symbol

fixes #1954