Note that
$$
\int_{-\infty}^{t} f(\tau) \delta(t-\tau) d \tau, \tag{A}
$$
under the change of variables $\tau\to\tau+t$, becomes
$$
\int_{-\infty}^{0} g(\tau) \delta(\tau) d \tau \tag{B}
$$
where I have defined $g(\tau)\equiv f(\tau+t)$. The purpose of this post is to investigate to what extent is the integral $(\mathrm B)$ meaningful.
If you change the upper limit to something slightly greater than zero, then the integral above becomes
$$
\int_{-\infty}^{\epsilon} g(\tau) \delta(\tau) d \tau=g(0)\tag{B.1}
$$
while if you replace the upper integral with a small negative number, then the integral vanishes,
$$
\int_{-\infty}^{-\epsilon} g(\tau) \delta(\tau) d \tau=0\tag{B.2}
$$
But with an upper limit that is exactly zero, there is no clear meaning we could ascribe to the integral $(\mathrm B)$. There are different conventions one could follow, and it seems that the book OP is reading chose $(\mathrm B.1)$ to define what the integral $(\mathrm B)$ means.
Nevertheless, there is another possible meaning we could ascribe to $(\mathrm B)$, one which is perhaps much more common to find in standard books. The trick is to think of $\delta$ in terms of a nascent delta function,
$$
\delta(\tau)\to\lim_{\epsilon\to0}\delta_\epsilon(\tau)
$$
with $\delta_\epsilon(\tau)$ a well-behaved function of $\tau$.
If you take, as it is usually done, a symmetric function $\delta_\epsilon(+\tau)=\delta_\epsilon(-\tau)$, then it is clear that
$$
\lim_{\epsilon\to0}\int_{-\infty}^{0} g(\tau) \delta_\epsilon(\tau) d \tau=\frac12 g(0) \tag{B.3}
$$
which is in fact the most common convention to define the integral $(\mathrm B)$. It is the diplomatic choice between $(\mathrm B.1)$ and $(\mathrm B.2)$: it is half their sum.
You have the three possibilities, $(\mathrm B.1,\mathrm B.2,\mathrm B.3)$, to define the integral $(\mathrm B)$, all of which are pretty natural. Conventions vary from book to book, and which of these is more convenient depends on the context. In some extreme cases, only one of them is consistent with the rest of the formalism.
In a more formal setting, one could attempt to give a proper meaning to the integral $(\mathrm B)$ in the context of distribution theory. The naïve approach
$$
(\delta\cdot 1_{\mathbb R^-})[g]\overset?=\int_{-\infty}^{+\infty} \delta(\tau)1_{\mathbb R^-}(\tau)g(\tau)
$$
is meaningless because the product of the distributions $\delta$ and $1_{\mathbb R^-}$ is undefined (their singular support, $\{0\}$, coincides). The second approach
$$
\delta[g\cdot 1_{\mathbb R^-}]\overset?=\int_{-\infty}^{+\infty} \delta(\tau)1_{\mathbb R^-}(\tau)g(\tau)
$$
is meaningless too because $g\cdot1_{\mathbb R^-}$ is not in general a continuous function, and therefore it is not in the domain of $\delta$. The only case where this is a well-defined approach is when $g(0)=0$, in which case $g\cdot1_{\mathbb R^-}$ is continuous, and the three integrals $(\mathrm B.1,\mathrm B.2,\mathrm B.3)$ agree: they all vanish.