XWIKI-9606: Scaled image attachments don't appear in the PDF export

* Don't concatenate the query string to the URL, use the URL factory instead because the URL factory used when exporting to PDF builds a map of (URL, AttachmentReference) which is used later by FOP to resolve URIs and if we modify the URL after it is build by the URL factory the FOP resolve won't be able to find the attachment.

Conflicts:

	xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/test/java/org/xwiki/rendering/internal/wiki/XWikiWikiModelTest.java
(on branch 5.0.4 getLinkURL calles the getAttachmentURL with "true" (absolute url) instead of "false" (host relative url)