I claimed a Bag of Fortune with a pet active and none of the gold the pet picked up went in my inventory. It might be happening because the gold piles that show up on the ground are actually showing negative amounts.
When picked up manually, the gold does go in the inventory.