I believe you can use the getDocContentType XPath function to figure out which documents in the list are already PDFs. If sending a PDF to the createPDF2 operation is causing problems, you can test each document in the list with getDocContentType, and if it's not a PDF, add it to a new list that you can feed to CreatePDF2.
Make sense?