fix failing integration tests due to enabling optimistic locking on loans
MIFOSX-1550 Check for null principal amount when creating journal entry for loan write-off