XWIKI-9805: When target property is empty WikiStream UI should force downloading a file instead of just writing on the response

(cherry picked from commit 455d8dd26b50fa9e68c4e6d9fe51f055f2d23653)