[rebuild] Call MODx.logout() when trying to logout

Fixes #11646
[rebuild] Call MODx.logout() when trying to logout

* origin/pr/11650:
  [rebuild] Call MODx.logout() when trying to logout