added error handling to card.Render()