Bug: extract item id doesn't return an int

extract_item_id does not return an int if the command hasn't been used properly. To catch this situation a message to the user is needed.