Fix of pdf not loading on android (issue 5427)

Fix for pdf on android not visible

Fix for pdf on android not visible
Merge pull request #5448 from thejdeep/androidfix

Added try/catch #5427