Avoid throwing runtime exception when report generation fails.