Fix an exception when using OclCascadeClassifierBuf.