Can't find a mistake.
If you think about it, this is not really a natural situation at all, since you have to have infinite volume density to get finite surface and line densities. As we know, the case of finite surface density on a spherical shell turns out to be mathematically well-behaved in spite of that (same gravitational field on the shell as if its total mass were a central point mass). For a ring, though, the fraction of the total mass which is directly adjacent to a given point along the circumference is relatively greater than it is for a spherical shell (infinitesimal versus infinitesimal^2, if you see what I mean). Thus, it doesn't seem implausible that that fraction could produce a diverging central acceleration, as you expression indicates.
If you still don't trust your maths, just model it numerically. If the system were well-behaved, the result should converge as you decrease delta_theta. If it doesn't, there you are.
...
Now, as the size approaches zero, its contributions approach a constant greater than zero. Whenever infinitesimal regions give you finite contributions, you're pretty much screwed, I'm afraid.
