FillFromPageHistory works incorrectly when there is only edit in history due to the fact that the page has different xml-structure. In attachement there is modified FillFromPageHistory that works fine.
Yes, it's a bug. Thanks for reporting it and for your patch, I'll fix it.
Fixed in version 2.97.