bugfix; solve cases where the PDF processing just hang and stopped the bot from continuing

Change-Id: I33075a2663950533421f2d48f71ef77eed38962f