Steps to reproduce:
- Enable Container Based Authentication following 
- Open for example Cockpit in any browser
As a user I don't need to login and have access to Cockpit.
The following NullPointerException is thrown:
- In  the user query returns no user.