Yes, there is an answer and looking at your calculations I suppose you know how to get it:
$$ \int_{0}^{a} \frac{1}{\sqrt{x}} dx = 2 \sqrt{a} - 2\sqrt{0} = 2 \sqrt{a} $$
The point here is that although the graph of $\frac{1}{\sqrt{x}}$ goes to infinity when $x \to 0$, the area between the x axis and this graph is perfectly finite. This might be hard to understand, but you can try to imagine it in the following way. Suppose you take a number $\epsilon > 0$ and now you calculate the area between the x axis, the graph of $\frac{1}{\sqrt{x}}$ and the vertical lines $x=\epsilon$ and $x=a$. With the same integral we've already calculated, you obtain that this area is:
$$ \int_{\epsilon}^{a} \frac{1}{\sqrt{x}} dx = 2 \left( \sqrt{a} - \sqrt{\epsilon} \right) $$
And now you should't be troubled by the fact that the graph of $\frac{1}{\sqrt{x}}$ goes to infinity, because it is perfectly finite in $x = \epsilon$. Now make $\epsilon$ arbitrarily small, that is, take the limit when $\epsilon \to 0$, the area becomes $2 \sqrt{a}$ and you recover the previous result. The key point here is, from an intuitive point of view, that the interval $(0, \epsilon)$ has length $\epsilon$, which tends to zero. Thus, although the function $\frac{1}{\sqrt{x}}$ diverges near $0$, this zone of divergence is so small that you get a finite area. Of course, this is only a small intuitive discussion trying to shed light on your question, not a rigorous reasoning.
To understand a little bit more this idea, suppose you take $p>0$ a real number different from 1. Then, you have:
$$ \int_{\epsilon}^{a} \frac{1}{x^{p}} dx = \left[ \frac{x^{-p+1}}{1-p} \right]_{\epsilon}^{a} = \frac{1}{1-p} \left( a^{1-p} - \epsilon^{1-p} \right) $$
As you can easily check, when you take $\epsilon \to 0$ the result converges if $p<1$ and diverges if $p>1$. Then your example with $\frac{1}{x}$ (which also diverges because of the logarithm) is some kind of limit: functions like $\frac{1}{\sqrt{x}}$ or $\frac{1}{x^{3/5}}$ diverge slow enough near 0 to have a finite area, but $\frac{1}{x}$ or $\frac{1}{x^4}$ don't.