Fix issue that could crash system

There was an issue that would cause the reimbursement system to crash if
someone:
- Added a new line in a reimbursement
- Edited a line
- Change the category of the line
- Change the amount
- Hit submit

This code change should fix it