Fixes object frame event delete button, when there were no events the
delete button was attempting to delete the root node throwing an
exception.