[Decision Trees] Minor MongoTrainer polling refactoring

Test Plan: unit tests

Differential Revision: http://phabricator.tullo.ch/D41
[Decision Trees] Random Forest small bugfix

Summary: Due to lack of unit tests on this code.

Test Plan: will add unit tests.

Differential Revision: http://phabricator.tullo.ch/D42