Fix error when displaying search results containing an item without an id