Fixes #82319 by adding checks for the data retrieve in a supposedly succesful phpPDF request.
Merge pull request #156 from luisromangz/8.5-SNAPSHOT-82319

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