[boost] [property_tree] Issue: erase is corrupting the tree