Fix consumeParenthesized

Need to explicitly check against undefined, otherwise '0' counts as a failed parse.