Bugfix: [JIRA] (ROOT-6520) Segfault while training decision tree nodes