add unsightly error handler in XSLT->render() method