The answer to your question is no. Any approach based on the integral
$$\int\limits_0^\frac\pi2\operatorname{\text{Ш}}_{2 \pi}(f_x(t))\,dt\tag{1}$$
of the Fourier series for the Dirac comb
$$\operatorname{\text{Ш}}_{2 \pi}(t)=\frac{1}{2 \pi}\underset{N\to\infty}{\text{lim}}\left(\sum\limits_{n=-N}^N e^{i n t}\right)=\frac{1}{2 \pi}+\frac{1}{\pi}\underset{N\to\infty}{\text{lim}}\left(\sum\limits_{n=1}^N \cos(n t)\right)\tag{2}$$
where
$$f_x(t)=\tan(t)-x t\tag{3}$$
is at best an approximation and not an exact formula. You may be able to compensate for the two contributions of the tooth of the Dirac comb at $t=0$, but all teeth in the Dirac comb in the right-half plane contribute to the end result.
Noting the Dirac comb $\operatorname{\text{Ш}}_{2 \pi}(t)$ is $2\pi$ periodic as illustrated in Figure (1) below, the following table illustrates the contribution of the tooth at $t=0$ and the first 5 teeth in the right-half plane for the case $f_2(t)=\tan(t)-2 t$ (corresponding to $x=2)$.
$$\begin{array}{cc}
k & \int\limits_0^{\frac{\pi }{2}} \delta(f_2(t)-2 \pi k) \, dt \\
0 & 0.225523 \\
1 & 0.0119339 \\
2 & 0.00413686 \\
3 & 0.00208941 \\
4 & 0.00125876 \\
5 & 0.000840887 \\
\end{array}$$
Note the row for $k=0$ in the table above gives the correct result since Mathematica ignores the partial contribution of an analytic representation at $t=0$. Also note the contribution of each successive tooth in the right-half plane decreases in magnitude which is because the slope of $f_2(t)=\tan(t)-2 t$ increases rapidly as $t$ approaches $\frac{\pi}{2}$.

Figure (1): Illustration of formula (2) for $\operatorname{\text{Ш}}_{2 \pi}(t)$ evaluated at $N=20$
Figure (2) below illustrates $f_2(t)=\tan(t)-2 t$ in blue and $\delta(f_2(t))$ in orange using the limit representation
$$\delta(t)=\underset{N\to\infty}{\text{lim}}\left(2 N\, \text{sinc}(2\, \pi N\, t)\right)\tag{4}$$
evaluated at $N=20$. Note $\delta(f_2(t))$ has a $\delta$-function spike at $t=0$ as well as at $t\approx 1.16556$ corresponding to the two zeros of $f_2(t)$.

Figure (2): Illustration of $f_2(t)=\tan(t)-2 t$ in blue and formula (4) for $\delta(f_2(t))$ in orange
Figure (3) below illustrates $f_2(t)=\tan(t)-2 t$ in blue and $\delta(f_2(t)-2 \pi)$ in orange which corresponds to the first tooth of the Dirac comb in the right-half plane using the limit representation of $\delta(t)$ defined in formula (4) above evaluated at $N=20$. Note the $\delta$-function spike where $f_2(t)$ evaluates to $2 \pi$ (corresponding to the horizontal green reference line).

Figure (3): Illustration of $f_2(t)=\tan(t)-2 t$ in blue and formula (4) for $\delta(f_2(t)-2 \pi)$ in orange
Every time $f_x(t)$ crosses an integer multiple of $2 \pi$ the integral $\int\limits_0^\frac\pi2\operatorname{\text{Ш}}_{2 \pi}(f_x(t))\,dt$ will pick up another contribution of a tooth of the Dirac comb, and since $\underset{t\to \left(\frac{\pi }{2}\right)^-}{\text{lim}}(f_x(t))=\infty$ this includes a contribution from every tooth of the Dirac comb in the right-half plane.
As $x$ grows larger, the integral $\int\limits_0^\frac\pi2\operatorname{\text{Ш}}_{2 \pi}(f_x(t))\,dt$ will also begin to pick up contributions from teeth of the Dirac comb $\operatorname{\text{Ш}}_{2 \pi}(t)$ in the left-half plane. For example, Figure (4) below illustrates $f_{10}(t)=\tan(t)-10 t$ in blue and $\delta(f_{10}(t)+2 \pi)$ in orange which corresponds to the first tooth of the Dirac comb in the left-half plane using the limit representation of $\delta(t)$ defined in formula (4) above evaluated at $N=20$. Note the two $\delta$-function spikes where $f_{10}(t)$ evaluates to $-2 \pi$ (corresponding to the horizontal green reference line).

Figure (4): Illustration of $f_{10}(t)=\tan(t)-10 t$ in blue and formula (4) for $\delta(f_{10}(t)+2 \pi)$ in orange