Fix hang in 64-bit builds when filtering [V] item list

in 64-bit builds, unsigned long is smaller than size_t, so storing std::string::find() in unsigned long and comparing to std::string::npos would always fail