Fix php error when import XML from GLPI interface. closes #2683