This happens very rarely. I wasn't able to determine a way to reproduce this reliably.
This happens both on manual saves and on saves caused by script (autoautosave mod).
This happens both on 4.3.3 and on master (I have 079e7ee4e). I don't know if this happens on older versions.