Found the bug in updateSharesWithReceivedShares. One more to go when creating new shares.
Catching correct exceptions. Now attempting to pass the correct parameters to shareItem().