Add try block in viewhtml to catch broken rendering.