Fix errors when looking for nonexistant $item level