As Renart, I'll ignore existence and uniqueness, and focus on continuity. However, I'll use a different (but equivalent) definition of continuity : a function is continuous if and only if the pre-image of any open ball is open. That avoids $\varepsilon-\delta$ arguments, although this proof can be adapted to use the $\varepsilon-\delta$ definition if needed.
First point : for all $M \in \mathbb{R}$, the function $I_M : a \mapsto \int_0^M g(a,x) dx$ is continuous.
Proof(s) : I'll give two proofs.
1) Let $a$, $M \in \mathbb{R}$. The subspace $[a-1, a+1]\times [0,M]$ is compact and $f$ is continuous, so $f$ is uniformly continuous on $[a-1, a+1]\times [0,M]$. Hence, there exists a modulus of continuity $\omega$ for $f$ on this subspace ; that is, for all $x$, $y \in [a-1, a+1]\times [0,M]$,
$$|f(x)-f(y)| \leq \omega (\|x-y\|).$$
Then, we get, for all $a' \in [a-1,a+1]$:
$$\left| \int_0^M f(a,x) dx - \int_0^M f(a',x) \right| \leq \int_0^M |f(a,x)-f(a',x)| dx \leq M \omega (|a-a'|).$$
In particular, the differences converges to $0$ when $a'$ converges to $a$.
2) Since $[a-1, a+1]\times [0,M]$ is compact and $f$ is continuous, $f$ is bounded on $[a-1, a+1]\times [0,M]$. Let $(a_n)_n$ be a sequence which converges to $a$. Then:
$$\lim_{n \to + \infty} \int_0^M f(a_n,x)dx = \int_0^M \lim_{n \to + \infty} f(a_n,x)dx =\int_0^M f(a,x)dx,$$
where we used first the dominated convergence theorem, and then the continuity of $f$.
Now, I'll prove the claim. Let $y \in \mathbb{R}$ and $\varepsilon >0$. Then:
$$h^{-1} (B(y,\varepsilon)) = \left\{a : y-\varepsilon < h(a) \right\} \cap \left\{a : h(a) < y+\varepsilon \right\}$$
But, since $M \mapsto \int_0^M f(a,x) dx$ is strictly increasing,
we have $\left\{a : y-\varepsilon < h(a) \right\} = \left\{a : \int_0^{y-\varepsilon} f(a,x) dx -g(a) < 0 \right\} = (I_{y-\varepsilon}-g)^{-1} (\mathbb{R}_-^*)$.
Since $I_{y-\varepsilon}-g$ is continuous by the fist point, $\left\{a : y-\varepsilon < h(a) \right\}$ is open. By the same argument, $\left\{a : y+\varepsilon > h(a) \right\}$ is open. Hence, as the intersection of two open sets is open, $h^{-1} (B(y,\varepsilon))$ is open. Since this is true for all $y \in \mathbb{R}$ and all $\varepsilon >0$, it follows that $h$ is continuous.