Fix empty item_id logging

Happened at least with arslatest plugin

-edit-
Clarification: the item at the logs view was empty. item_id was 1, which was not the correct value.