(MRI) Fixed a memory leak in fragment parsing if nodes are not all subsequently reparented. Closes #856