Fix ROOT-5734

Now tags like
<class name="FOO">
never closed are not silently ignored, but an error occours.