XWIKI-11258: Panels are displayed when we have a login error

(cherry picked from commit 997a5035cc79131e8b0d1a7ae69bb63a1f38719d)