Fix warnings when using FusionInventory

requests from FusionInventory agents seems to not have $_SESSION['glpiactiveprofile']