Fixed CV_ASSERT condition in the code for bag of words
Merge pull request #2351 from yashdv:BOW_assert_error