Fix the bugs of RubyArray#assoc & RubyArray#rassoc while encountering
null objects