Debug of the delete functionality

The current node was not correctly updated, resulting the parent of the
deleted node having its text replaced by its child's.