ignore empty collection while generating svm features