When I log in a user with the basic Sencha authentication using the Sencha.io controller, the user is logged in, but an error is thrown that says:

Uncaught TypeError: Cannot read property 'dom' of null

Here is my stacktrace:

If I refresh the page, everything works like it should. It is just an issue during the login process. Am I doing something wrong? Everything seems pretty straightforward to me, but it's just getting caught there for some reason.