Fixed match_item_proc for Hash versions without 'last'.