Refs #4404 Error when downloading pdf-report
Can you please apply these two changes and confirm whether this fixes the issue for you?