When trying to save changes to page layout in Experience Editor, errors appear and the page does not save.
The details in the logs showed:
System.Xml.XmlException Message[1]: Root element is missing.
I could see this was an issue to do with DyanamicPlaceholdersDebug.OnItemSaved
failing but wasn't sure what.