Fix warning if pdfinfo fails but pdftext succedes.

Discovered when fixing bug 41281

Change-Id: I8c956da326e5dc339893a010370d399e97e204fd