Fix deletion of root node

The flush function for types with ensure => absent was not deleting the
root node. This commit corrected that.