Assuming this is a bug/unintended behavior. getUnitLoadout, BIS_fnc_saveInventory, and even backpackItems all appear broken and are not reporting contents of players' backpacks when run in the server context.
There seems to be no way to tell what items are in a players backpack reliably without writing very complex client-server cross calling scripts and whitelisting in BE.