fixed assert condition in BOW code

We need the "vocabulary" to not be empty (i.e vocabulary.empty() should return false).