Added command to save a tocref tail before removing element node