Corrected checkout operation for building PDFs [skip ci].