Avoid NPE while handling errors in Xslt processing.