Twig runtime error

if bolt strict variable is true and item.title or item.class is not defined twig throw a runetime error because of the key title or class is not defined.