XWIKI-9858: Unexpected behavior of "back to list" button after adding an extension

(cherry picked from commit 25c0dc9102e8edb5e340a27e870ed715df814698)