leads used to be listed by the ListLeads form even after having been converted. The solution is to delete the lead partyRoles.
The other problem was that the relationship between the owner of the account lead was not properly expired due to the party Id being taken from an empty variable. The solution was changing the wrong variable: partyGroupPartyId to partyGroupId.
This is my first contribution to ofbiz, so please do review.