At the risk of distracting you from the reading of Bogachov's fundamental tome, let me recall why the fact that $x\cdot(1-F(x))\to0$ when $x\to+\infty$ is a simple consequence of the integrability of $X$.
The idea is simple and powerful: first write the quantities you are interested in as integrals of functions (expectations of random variables, in the probabilistic jargon), then invoke Lebesgue's revered name in one way or another.
Here, $x\cdot(1-F(x))=x\cdot\mathrm P(\xi\gt x)=\mathrm E(\xi_x)$ where $\xi_x=x\cdot[\xi\gt x]$. Phase one completed. Now, to phase two: $\xi_x\to0$ pointwise when $x\to+\infty$ hence we only need a tool to exchange a limit and an integral, since this exchange would yield $\lim\limits_{x\to\infty}\mathrm E(\xi_x)=\mathrm E\left(\lim\limits_{x\to\infty}\xi_x\right)=0$.
Well, the most classical is the better: by Lebesgue dominated convergence theorem, our task is over if $\xi_x\leqslant \zeta$ for every $x$, with $\zeta$ integrable. Let me leave you the pleasure to guess such an integrable $\zeta$.
Coming back to the problem which interests you, the relation $\mathrm E(\xi)=\int\limits_0^{+\infty}(1-F(x))\cdot\mathrm dx$ holds without any restriction as soon as $\xi\geqslant0$ almost surely. Simply, if $\xi$ is integrable the RHS is $\mathrm E(\xi)$ and if $\xi$ is not integrable the RHS is infinite. Let us use our favorite tool once again, that is, let us express every probability involved as the expectation of a random variable. Taking stock of our previous computations, we see that $1-F(x)=\mathrm E(\eta_x)$ with $\eta_x=[\xi\gt x]$ hence
$$
\int\limits_0^{+\infty}(1-F(x))\cdot\mathrm dx=\int\limits_0^{+\infty}\mathrm E(\eta_x)\cdot\mathrm dx=\mathrm E(\eta),\qquad \eta=\int\limits_0^{+\infty}\eta_x\cdot\mathrm dx,
$$
where the last equality between integrals is a consequence of Fubini's theorem (always true for nonnegative functions/random variables) for the product measure of the Lebesgue measure and $\mathrm P$ on the measurable space $(0,+\infty)\times\Omega$. The proof is over since
$$
\eta=\int\limits_0^{+\infty}[\xi\gt x]\cdot\mathrm dx=\int\limits_0^{\xi}\mathrm dx=\xi.
$$