Fix singleton property cleanup logic

Improved how React releases singleton elements (html, head, body) by only removing properties that React actually set, rather than removing all attributes which could interfere with third-party scripts. The update now tracks the last committed props for each singleton and clears only those specific properties during cleanup.