Coverity scan defects fixed for RandomForest