Prevent dieing on empty trees