DEV: local variables were wrongly set to zero resulting in a ipslerr for one of the intermediate mass balance checks. Contributes to ticket #591