Itemlist fix

Bounds checking in item listing to prevent breakdown when more than MAX_ITEMLIST items are present