Usually any confusion is caused by a transaction being open/ongoing, which automatically causes Diagram.isModified to be true. However that is not the case here. We’ll need to investigate further.
Thank you very much for reporting this bug along with an easily reproducible test case!
I believe this bug will be fixed for version 1.4.9, which should be coming out within a week.