Fix a bug in gbmDoFold

gbmDoFold gives an error when a single predictor is given.