Log an informative error if there is an exception during rendering of a view.
This should help with debugging rather than seeing a PHP error saying
__toString() should not throw an exception.