Try to handle errors during rendering more gratefully