Fix the bug of RubyArray#delete which happens while deleting null
objects