Fail safe code when parsing enum literals