I have also noticed this. I have lua script that automatically open midi regions in MuseScore and I noticed in more recent versions fof Ardour if the session is not saved or not saved to snapshot, midi regions will open up blank and they will show as empty and at 26 b in the project folder.
This is probably something for Paul and Robin to address, but for now I would just try saving your session first before exporting the midi files.