Hot fix for NullPointerException on login without previous registration.