Fix for item_id extraction for entities

The code in kw_itemnames_entity_item_extract_id uses the revision_id instead of the entity_id to determine the item_id. This fails for entities without revisions. We should use the entity_id instead.