glpi: Refs #2259 Fix Nonetype TB