Let $(\mathsf{X}, \mathcal{X})$ be a measurable space, $\pi(dx)$ be a probability measure on it, and $K:X\times\mathcal{X}\to[0, 1]$ be a Markov kernel. I have the following property $$ \int K(x, A) \pi(dx) = 0 $$ In the textbook then they say that this means that $\pi$-almost surely $K(x, A) = 0$.
I don't understand why one can use almost surely here. My understanding is that almost surely can be used about events, but this is an expectation $\mathbb{E}[K(X, A)]$.
Attempted Proof
I tried to reconciliate the two, starting from the second. I know that $\pi$-almost surely $K(x, A) = 0$ means $$ \int_{\{x\in\mathsf{X}\,:\, K(x, A) = 0\}} \pi(dx) = 1 $$ Since $\pi$ is a probability measure and $$ \mathsf{X} = \{x\in\mathsf{X}\,:\, K(x, A) = 0\} \cup \{x\in\mathsf{X}\,:\, K(x, A) \neq 0\} $$ I also know that the size of the complement set $$ \int_{\{x\in\mathsf{X}\,:\, K(x, A) \neq 0\}} \pi(dx) = 0 $$ Since $K$ is a Markov kernel, it must take non-negative values, so this means $$ \int_{\{x\in\mathsf{X}\,:\, K(x, A) > 0\}} \pi(dx) = 0 $$ which I can write slightly differently $$ \int_{\{x\in\mathsf{X}\,:\, K(x, A) \in (0, 1]\}} \pi(dx) = 0 $$ and again using the definition of preimage $$ \int_{K(\cdot, A)^{-1}((0, 1])} \pi(dx) = 0 $$ using now an indicator function $$ \int_{\mathsf{X}} 1_{K(\cdot, A)^{-1}(0, 1]}(x) \pi(dx) = 0 $$ and by definition of the indicator function, this is the same as $$ \int_{\mathsf{X}} 1_{(0, 1]}(K(x, A)) \pi(dx) = 0 $$ and I think I could write $$ \int_{\mathsf{X}} K(x, A) \pi(dx) = \int_{\mathsf{X}} 1_{\{0\}}(K(x, A)) \pi(dx) + \int_{\mathsf{X}} 1_{(0, 1]}(K(x, A)) \pi(dx) = 0 + 0 = 0 $$