Fix the bug of RubyEnumerable#findIndex while finding the index of a
null object