XWIKI-9003: Warning in console when deleting an attachment
* $redirect variable was not defined.