Fix EZP-21520: Internal Server Error for disabled user accounts

https://jira.ez.no/browse/EZP-21520

This PR finally fixes the issue where an exception with *A Token was not found in the SecurityContext* message occurs after deleting/deactivating a logged-in user.