MDL-42023 EditPDF: Fix bug causing pdf to not get generated.