Fix failing unit tests.

If an empty set of lends is passed to the `lend.html` template, do not attempt
to display a table of lends.