fix a warning if $sysobjectid is undef

closes: #2266

Reported-by: Tomás Abad <tabadgp@gmail.com>
Merge branch '2.3.x' of git+ssh://forge.fusioninventory.org/git/fusioninventory/agent into 2.3.x