MIFOSX-1550 Check for null principal amount when creating journal entry for loan write-off

This was done as part of:
https://www.google-melange.com/gci/task/view/google/gci2014/6114906839449600