Very generally, if $(X,\mu)$ is a measure space, and $f:X \rightarrow \mathbb{R}$ is measurable and satisfies $\int_{X} |f(x)|d\mu = 0$, then $f = 0$ almost everywhere.
To see why, note that:
$$\{x \mid f(x) \neq 0\} = \bigcup_{n \in \mathbb{N}} \{x \mid |f(x)| > 1/n\}$$
Letting $A_n = \{x \mid |f(x)| > 1/n\}$, we know $|f| > \frac{1}{n}1_{A_n}$, where $1_{A_n}$ is the function which is $1$ on $A_n$ and $0$ elsewhere hence $0 = \int_X |f| d\mu \geq \int_X \frac{1}{n}1_{A_n}d\mu = \frac{1}{n}\mu(A_n)$. We get $\mu(A_n) = 0$, and therefore $\{x \mid f(x) \neq 0\}$ is the countable union of measure-zero sets and so has measure zero.
--
Now, any positive function on $[a,b]$ which is Riemann integrable is also Lebesgue integrable, and the integrals agree. But you can prove this without needing measure theory and just using the definition of Riemann integrability on $[a,b]$ (though this proof is very similar to the above):
Assuming $f$ is Riemann integrable and $\int_a^b |f(x)|\, dx = 0$, given any $\varepsilon > 0$ we can find a partition $P$ of $[a,b]$ such that the upper sum $U(|f|,P) < \varepsilon$. Then for any real number $\delta > 0$, consider just the intervals $I$ in $P$ such that $\sup_{x \in I}|f(x)| \geq \delta$. If the total length of these intervals is $L$, these intervals contribute at least $L\delta$ to the sum $U(|f|,P)$, hence we have $L < \varepsilon/\delta$.
Now fix $\varepsilon_0$, and pick $\varepsilon = \varepsilon_02^{-n}/n$ and $\delta = 1/n$, and the above paragraph shows that we can cover all points where $|f(x)| \geq 1/n$ by intervals whose total length $L$ is $< \varepsilon_02^{-n}$. Then taking the union of all these intervals over $n \in \mathbb{N}$, we get intervals covering the entire set $\{x \mid |f(x)| > 0\}$ whose total length is $< \varepsilon_0$. Since $\varepsilon_0$ was arbitrary, this completes the proof that this set has measure zero.
--
As a last comment, I'll just say that the continuity assumption actually makes this proof way easier, and there's no need for fancy measure theory: If $f(x_0) \neq 0$ then by continuity there is some $\varepsilon > 0$ and $\delta > 0$ such that $|f(x)| \geq \varepsilon$ for $|x - x_0| \leq \delta$, and so you have $\int_a^{b}|f(x)|\, dx \geq \varepsilon \delta$