Dynamically allocated item_list must use correct length in item_is_available()

It's not an array any more, so N_ELEMENTS() can't work.