temporary fix to avoid crash when sending email to the borrowed person.

The expiry in the loan is not set in some cases and computing the number
of remaining days was causing the crash. Fixed it by skiping the email
in such cases.