correction of the root handling in standard mode

There was a missing handling of the has_root option when removing a node
in none-legacy mode.