Fix bug in makePDF due to removal of begin_edit and end_edit

ST3 from (at least) 3015 doesn't use begin_edit and end_edit as in earlier versions. This change fixes a bug where the output from a makePDF run was not visible in the output panel because the do_output_edit and do_finish_edit commands were not run properly anymore.