Fix of crash on item lookup

Fix of Issue #3704.