Fix crash when reading .kim files.

The xml end tag was accidentally read twice (causing the reader to run
into the EndDocument).