XWIKI-10878: The buttons from deleting a space are different than the button from deleting a page

(cherry picked from commit 516bbaeee397719b3e7dcb639b19593e6e4104fb)