Fix running Ruby 2.1.* on Travis.
Slightly more succinct.
Don't blow up if the loan's amount is not set.
Don't blow up if the loan's repayment_duration is not set.
Slightly reduce complexity.