Fix issue saving and sending blank PDFs due to security fix