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

(cherry picked from commit f198a03c1929e2f1d961284e0a496a255cf5edc2)