Handle properly constant columns in DRF/GBM.

If a model is requested for train dataset containing
only constant columns, the request is rejected.

Fix of PUB-123