[TIMOB-17670] changed setUrl
improved code as advised
Merge pull request #6062 from cheekiatng/TIMOB-17670

[TIMOB-17670] DocumentViewer not displaying PDF files