While evaluating the integral
$$I = \int_0^1 \frac{\ln \left( \displaystyle \sum_{n = 0}^{\infty} x^n \right)}{x} \mathrm{d}x$$
it can be observed that
$$\sum_{n = 0}^{\infty} x^n = \frac{1}{1 - x}$$
for $|x| < 1$. This way, after some steps involving
$$- \ln (1 - x) = \sum_{n = 0}^{\infty} \frac{x^{n + 1}}{n + 1}$$
it turns out that
$$I = \int_0^1 \frac{- \ln(1 - x)}{x} \mathrm{d}x = \frac{\pi^2}{6}$$
However, the equality
$$\sum_{n = 0}^{\infty} x^n = \frac{1}{1 - x}$$
is only valid for $|x| < 1$, while instead the integral includes the point $x = 1$, being it the upper boundary.
According, to this answer, the evaluation of convergence in this special point can not be general, but must be performed according to each specific case.
Then, is it still correct to consider the integrating function as convergent, even if it must also be evaluated in $x = 1$? Why?