[TIMOB-17670](3_4_X) changed setUrl
improved code as advised
Merge pull request #6064 from cheekiatng/TIMOB-17670-3_4_X

[TIMOB-17670](3_4_X) DocumentViewer not displaying PDF files