Catch exceptions when rendering list items

Fixes #52