Fixes typo that caused inventory_object_id to be set to 0
in InventoryLoans.

Another case for TDD! :/