Fixed MIFOS-6045: Negative principal on loan accounts with small amount

Fixed MIFOS-6045: Negative principal on loan accounts with small amount