Your interpretation is correct. Whether the original sentence is correct is a matter of opinion, I think. This structure would be perfectly ok if the sentence read The last body (that was) buried in this cemetery was a male/female.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.