make ERFilter compile with refactored ml

this is complimentary PR to https://github.com/Itseez/opencv/pull/3032