Fix logout

Fix logout event.
Ref : https://github.com/cakephp/cakephp/pull/5097