Updated tag renderer to properly log errors