Log an informative error when a view has an exception

This should help with debugging rather than seeing a PHP error saying __toString() should not throw an exception.