For a different approach, the function $\varPhi: x \mapsto \int_a^x \varphi(t) \, dt$ is continuous and since $G$ is monotone we have that $\varPhi$ is Riemann-Stieltjes integrable with respect to $G$. From integration by parts, it follows that $G$ is integrable with respect to $\varPhi$ and
$$\int_a^b G \, d\varPhi= G(b)\varPhi(b) - G(a)\varPhi(a) - \int_a^b \varPhi \, dG = G(b)\varPhi(b) - \int_a^b \varPhi \, dG.$$
It also follows from a general property of the Riemann-Stieltjes integral that if $G$ and $\varphi$ are Riemann integrable, which is the case here, then
$$\int_a^bG(t) \varphi(t) \, dt = \int_a^b G \, d\varPhi = G(b)\varPhi(b) - \int_a^b \varPhi \, dG.$$
Since $\varPhi$ is continuous, by the first mean value theorem for integrals there exists $x \in [a,b]$ such that
$$\int_a^b \varPhi \, dG = \varPhi(x)\int_a^b dG = \varPhi(x)[G(b) - G(a)].$$
Hence,
$$\begin{align}\int_a^bG(t) \varphi(t) \, dt &= G(b)\varPhi(b) - \varPhi(x)[G(b) - G(a)] \\ &= G(a) \varPhi(x) + G(b)[\varPhi(b) - \varPhi(x)] \\ &= G(a) \int_a^x \varphi(t) dt + G(b) \int_x^b \varphi(t) \, dt \end{align}$$
Since we can obtain the same result by replacing $G$ with $\hat{G}$ where $\hat{G}(t) = G(t) $ on $[a,b)$ and $\hat{G}(b) = 0$ we obtain
$$\begin{align}\int_a^bG(t) \varphi(t) \, dt &= \int_a^b\hat{G}(t) \varphi(t) \, dt \\ &= \hat{G}(a) \int_a^x \varphi(t) dt + \hat{G}(b) \int_x^b \varphi(t) \, dt \\ &= G(a) \int_a^x \varphi(t) dt \end{align} $$
Note that there is no reason why we must restrict $x \in (a,b]$. This would become evident by working through the proof of the first mean value theorem for integrals where no such restriction applies. If $\varPhi$ is continuous, attaining minimum and maximum values at $\xi_1$ and $\xi_2,$ and it happens that $\varPhi(\xi_1) < \varPhi(a) < \varPhi(\xi_2)$ then $\varPhi(a) = \varPhi(x)$ for at least one other point in $(a,b)$. It is possible that this is a point where $\varPhi(x) = \int_a^b \varPhi \, dG / [G(b) - G(a)]$.