fixed assert condition in BOW code

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