Coverity scan defects fixed for RandomForest

- Random Forest coverity defects fixed