Fixes #82319 by adding checks for the data retrieve in a supposedly succ...

...esful phpPDF request.