I was in two minds about how to fix this. I started going down the path of retaining the point-less (pun intended) line commands in the data and add support for decoding, drawing, and encoding such cases. But then I started thinking that maybe the decode should just ignore the whole picture command. So that's what I'm doing now. If an absolute or relative line command doesn't have any points, then it gets filtered out (I could do the same for other tool commands as well). This would mean that if the AGI Library were used to simply load, decode, encode and then save, the end result would be different from what it started with. Visually the pictures would be identical, but the end result would have less data due to the do nothing commands having been removed. That feels okay to me. The purest in me wouldn't want someone to save picture 12 back in to KQ2 thereby removing such junk data, but I doubt anyone is going to do that unless they are making some kind of KQ2 mod game. For fan games, I think it is fine to filter out junk data.
Regardless, this approach has fixed the rendering of KQ2 picture 12 in the C# AGI interpreter.